package com.collection;

import java.util.EnumMap;

/**
 * 枚举map，要求键为枚举
 *
 * @author jiangbang
 * @date 2016/5/31
 */
public class EnumMapDemo {
    public static void main(String[] args) {
        EnumMap<Season,String> map = new EnumMap<Season,String>(Season.class);
        map.put(Season.SPRING,"春天 ");
        map.put(Season.SUMMER,"夏天");
        map.put(Season.AUTUM,"秋天");
        map.put(Season.WINTER,"冬天");

        System.out.println(map);
    }

}

enum Season{
    SPRING,SUMMER,AUTUM,WINTER
}



